home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
os20
/
cli
/
toggleprt.lha
/
TogglePrt.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1980-01-04
|
842b
|
32 lines
/* TogglePrt.rexx by Brian J. Cerveny
*
* Change GPFax.pre and Normal.pre to preset files of your choice.
* (See documentation for details.)
*
*/
if exists('env:fax') then do
call open('File', 'ENV:fax', 'R')
fax = readch('File',1)
call close('File')
if fax = 1 then do
call open('File', 'ENV:fax', 'W')
writech('File', '0')
say 'Loading standard printer driver'
address command 'sys:prefs/printer from sys:prefs/presets/Normal.pre use'
end
else do
call open('File', 'ENV:fax', 'W')
writech('File', '1')
say 'Loading fax driver'
address command 'sys:prefs/printer from sys:prefs/presets/GPFax.pre use'
end
end
else do
call open('File', 'ENV:fax', 'W')
writech('File', '1')
say 'Loading fax driver'
address command 'sys:prefs/printer from sys:prefs/presets/GPFax.pre use'
end